package com.ruoyi.odorservice.model.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CompanyInfoListBean {

    @ApiModelProperty(value = "页码")
    private Integer page = 1;
    @ApiModelProperty(value = "每页数量")
    private Integer limit = 10;

    /**
     * 企业名称
     */
    @NotBlank(message="[企业名称]不能为空")
    @Size(max= 64,message="编码长度不能超过64")
    @ApiModelProperty("企业名称")
    @Length(max= 64,message="编码长度不能超过64")
    private String companyName;

}
